home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / mapw2.z / mapw2
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. mmmmaaaappppwwww2222((((3333GGGG))))                                                            mmmmaaaappppwwww2222((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mmmmaaaappppwwww2222 - maps a point on the screen into 2-D world coordinates
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd mmmmaaaappppwwww2222((((OOOObbbbjjjjeeeecccctttt vvvvoooobbbbjjjj,,,, SSSSccccrrrreeeeeeeennnnccccoooooooorrrrdddd ssssxxxx,,,, SSSSccccrrrreeeeeeeennnnccccoooooooorrrrdddd ssssyyyy,,,,
  13.                 CCCCoooooooorrrrdddd ****wwwwxxxx,,,, CCCCoooooooorrrrdddd ****wwwwyyyy))))
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _v_o_b_j   expects the transformations that map the displayed objects to
  17.             world coordinates.
  18.  
  19.      _s_x     expects the x coordinate of the screen point to be mapped.
  20.  
  21.      _s_y     expects the y coordinate of the screen point to be mapped.
  22.  
  23.      _w_x     returns the corresponding x world coordinate.
  24.  
  25.      _w_y     returns the corresponding y world coordinate.
  26.  
  27. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  28.      mmmmaaaappppwwww2222 is the 2-D version of mmmmaaaappppwwww.  _v_o_b_j is a viewing object that defines
  29.      world space.  It contains only routines that affect the model-view
  30.      matrix, the projection matrix, or the viewport specification.  _s_x and _s_y
  31.      define a point in screen coordinates.  _w_x and _w_y return the corresponding
  32.      world coordinates.  If the transformation is not 2-D, the result is
  33.      undefined.
  34.  
  35. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  36.      mapw
  37.  
  38. NNNNOOOOTTTTEEEE
  39.      This routine is available only in immediate mode.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.